﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GestionEducativa.DataLayer;

namespace GestionEducativa.Models
{
    public class ConceptosViewModel
    {
        public int Id { get; set; }
        public string Concepto { get; set; }
        public decimal Monto { get; set; }

        public ConceptosViewModel() { }

        public static string InsertarConceptoDetalle(string concepto, decimal monto)
        {
            ConceptoDetalle nconcepto = new ConceptoDetalle();
            nconcepto.concepto = concepto;
            nconcepto.monto = monto;

            try
            {
                new ConceptoDetalleRepository().InsertarConceptoDetalle(nconcepto);
                return
                    "a";
            }
            catch (Exception)
            {
                return
                    "e";
            }
        }
    }
}